﻿
//Author: 张亚涛
//createtime:2015-12-15 23:09:25
//Description: 

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using DAL;

namespace BLL
{

    /// <summary>
    /// 该类提供了一系列操作 "Member" 表的方法;
    /// </summary>
    public partial class MemberService
    {
        #region .对本表的维护.
        #region select data
        /// <summary>
        /// 根据Member表的OpenID字段返回数据 
        /// </summary>
        /// <param name="OpenID">OpenID</param>
        /// <returns></returns>       
        public static Member GetMemberByOpenID(string OpenID)
        {
            return MemberBase.GetMemberByOpenID(OpenID);
        }
        /// <summary>
        /// 判断微信用户是否已注册
        /// </summary>
        /// <param name="OpenID">OpenID</param>
        /// <returns>True/Flase</returns>
        public static bool IsRegister(string OpenID)
        {
            return MemberBase.IsRegister(OpenID);
        }
        /// <summary>
        /// 判断手机号是否已注册
        /// </summary>
        /// <param name="Mobile">手机号</param>
        /// <returns>True表示存在，Flase表示不存在</returns>
        public static bool IsExistMobile(string Mobile)
        {
            return MemberBase.IsExistMobile(Mobile);
        }
        /// <summary>
        /// 根据手机号获取会员ID
        /// </summary>
        /// <param name="Mobile">手机号</param>
        /// <returns></returns>
        public static string GetOpenIDbyMobile(string Mobile)
        {
            return MemberBase.GetOpenIDbyMobile(Mobile);
        }
        #endregion
        #endregion

        #region .SQL语句汇总.
        /// <summary>
        /// 返回Member表的所有数据 （SQL语句）
        /// </summary>
        /// <param name="Mobile">手机号</param>   
        /// <returns></returns>        
        public static string GetAllMember_SQL(string Mobile)
        {
            return MemberBase.GetAllMember_SQL(Mobile);
        }
        #endregion
    }
}